package StudyCode.summary.mycollection;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class GetEnumerationOverArrayList {
	public static void main(String[] args) {
		ArrayList arrayList = new ArrayList();

		arrayList.add("A");
		arrayList.add("B");
		arrayList.add("D");
		arrayList.add("E");
		arrayList.add("F");

		Enumeration e = Collections.enumeration(arrayList);

		System.out.println("ArrayList 枚举");
		while (e.hasMoreElements()) {
			System.out.println(e.nextElement());
		}

	}
}
